package com.mobis.article;


import com.mobis.article.service.ArticleService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import utils.IdWorker;

@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
public class ArticleServer {
    
        public static  void  main(String[] args){
            SpringApplication.run(ArticleService.class,args);
            }

    @Bean
    public IdWorker getIdWorker(){
            return  new IdWorker(1,1);
    }
}
